<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../node_modules//vue/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <h1>我的标题</h1>
        {{msg}} {{1+1}} {{hello()}}
        <span v-text="msg"></span>
        <span v-html="msg"></span>
    </div>
</body>
<script>
    new Vue({
        el:"#app",
        data:{
            msg:"<h1>Hello</h1>"
        },
        methods: {
            hello(){
                return 'world';
            }
        }

    })
</script>
</html>